package com.tanhua.server.utils;

import com.tanhua.server.pojo.User;

public class UserThreadLocal {

    private static final ThreadLocal<User> Local =new ThreadLocal();

    private UserThreadLocal() {
    }

    public static void set(User user){
        Local.set(user);
    }

    public static User get(){
        return Local.get();
    }

}
